These are orthogonal issues. You are right that avoiding these kinds of catastrophic events will require technology (many solutions other than colonization have been proposed https://en.wikipedia.org/wiki/Asteroid_impact_avoidance).
My point is that there are issues that are more imminent, and thus deserve far more attention.