sun‘s life cycle
1. nebula
2. protostar
3. sequence star (sun is this currently)
4. red giant
5. white dwarf
6. black dwarf
bigger stars
1. nebula
2. protostar
3. sequence star
4. red super giant
5. supernova
6a. black hole
or
6b. neutron star
Sun was a protostar
is currently a main sequence star
will remain so for another 4-5 billion years.
It will then expand and cool to become a red giant
after which it will shrink and heat up again to become a white dwarf
The white dwarf star will run out of nuclear fuel and
slowly cool down over many billions of years
black dwarf
BBC
https://www.bbc.co.uk/bitesize/guides/zwv8xfr/revision/1