Hi,
The more massive the star, the faster the material in the core is used up to power the star. So, the larger, hotter stars have shorter lives than the smaller, cooler stars. Here I am talking about their lives as "normal" stars like the Sun, converting hydrogen in their centers so that it becomes helium and energy. The stars will last a lot longer in forms like white dwarfs, neutron stars and black holes.
We expect the Sun to last roughly another 5 billion years. Eventually it will run out of hydrogen in its core and start to go through a series of expansions and contractions as it starts to burn heavier elements. Eventually we expect the outer layers to expand out into space leaving a white dwarf star. This whole process would be pretty tough on the planets. Close ones would get swallowed up as the Sun expands to become a red giant. Other ones that are not quite close enough to be swallowed up would alternately be baked and frozen.
I should point out, though, that 5 billion years is a long _time_, so this is very far away.
A bit more about this is here:
https://www.nasa.gov/audi...r_evol_feat_912.html