Over a period of hundreds of millions of years, random celestial events pose a global threat to the biosphere, which could lead to mass extinctions. These include the effects of comets or asteroids, as well as the possibility of a massive stellar explosion, called a supernova, within the 100-year-old luminosity…