Planet-eating stars hint at Earth's ultimate fate