The death of the Sun will be devastating for our planet. But we still have over 1 billion years to deal with it.