When do the stars die?
The stars die when they have exhausted their vast supply of nuclear fuel. When the hydrogen runs out, they switch to helium. When the helium run out, they quickly exhaust any remaining nuclear energy and either blow up, shrink or go cold. Just how long it takes to reach this point depends on the star. The biggest stars have masses of nuclear fuel but live fast and die young. The smallest star have little nuclear fuel but live slow and long. A star twice as big as the Sun lives a tenth as long. The biggest stars live just a few million years.