Pretty sure mankind will be the end of humanity. It will take billions (if not millions) of years for the sun to explode etc.
Can you imagine how humanity will have evolved?
Not just that but warfare too.
I wouldn't doubt it if bombs were created big enough to annihilate countries if not continetes.