Scientists have several theories for how humanity could end, from asteroid impacts and AI to the dying sun and the universe’s ultimate fate.