Compared to stars like the Sun (G-type) or K-type stars, how long are the typical lifespans of massive O-type stars?

Answer

Much shorter

O stars consume their fuel at an extremely high rate due to their mass and temperature, resulting in very short stellar lifespans, often only a few million years.

Compared to stars like the Sun (G-type) or K-type stars, how long are the typical lifespans of massive O-type stars?
astronomytemperaturetypestarhottest