IIRC, from a astronomy survey course I took in the late 1970s, stars that go supernova are only about 60K years old.
The information has probably been update since.
Ready to Explode: Inside Look at an Unstable Star (Eta Carinae)
It's highly dependent on the mass of the star: massive stars burn-out and go supernova much faster than less massive stars. The star turns into a supernova when it uses up all the fuel in the fusion zone in the stellar interior, and can't produce further energy to resist the self-gravitational contraction. If the star is of sufficient mass, the collapse of the hydrogen-rich outer layers after the inner core burns out results in a a catastrophic release of energy, spewing out enormous amounts of matter and energy. Thus, a supernova is born.