What entirely sets the dramatic, variable countdown for how long a star remains burning?

Answer

Initial mass

The time a star spends burning in the heavens is determined solely by its initial mass, which acts as the total fuel supply for its lifespan.

What entirely sets the dramatic, variable countdown for how long a star remains burning?
astronomylifespanstarcelestial body