When sunlike stars run out of fuel, they explode in a series of pulses, throwing off much of their mass in the form of a giant shell of gas called a planetary nebula. What remains of the star is a superdense white dwarf star at the center. The star’s planets, if any, are shattered by the blast. This could be the fate of Earth.