Could we detect an extinction-level asteroid in time?

Sixty-five million years ago, a space rock about 10 kilometers wide slammed into Earth near what is now the Gulf of Mexico, and in a geological instant, it erased three-quarters of all life on the planet. The impact was so catastrophic that it killed 100 percent of the non-avian dinosaurs, flying reptiles, giant marine reptiles, and ammonites, along with vast populations of mammals, insects, clams, and plants. We know these details because the asteroid left behind the Chicxulub crater in Mexico and a distinctive layer of ash and iridium buried in sedimentary rocks around the world. But a question worth asking today is simple: if such an asteroid were heading toward Earth right now, could we see it coming and have time to do something about it?
The asteroid that killed the dinosaurs was likely a carbonaceous chondrite, a type of space rock rich in carbon and water rather than pure metal or ice. Scientists determined this by studying the chemical fingerprints left behind in the crater and the ash layer. The impactor was traveling at tremendous speed when it struck, and three factors controlled how much damage it did: its mass (which determines total energy released), its angle of impact (steeper angles cause more damage), and its speed relative to Earth (energy scales with speed squared, so even small increases in velocity create huge increases in destructive power). The composition also mattered: a dense, rocky asteroid like this one causes far more damage than a weaker, more ice-rich comet would.
When an asteroid approaches Earth from space, it would become visible to the naked eye long before impact, though exactly when depends on the object's size, reflectivity, and the observer's location on Earth. A 10-kilometer asteroid would likely be visible to the unaided eye weeks or months before impact, assuming clear skies and knowing where to look. Once entering the atmosphere, the asteroid would move extremely fast, too fast for human reaction. The time from first becoming visible in the sky to actual ground impact would stretch from weeks (if seen from far away) down to just minutes or seconds in the final approach. Different parts of Earth would see the asteroid at different times depending on their position and the angle of approach, but the impact zone itself would experience only minutes of warning before collision.
This matters enormously today because unlike the dinosaurs, we have technology that could potentially detect a threatening asteroid years in advance. Modern telescopes scan the skies constantly, cataloging near-Earth objects and calculating their trajectories. If we spotted a dangerous asteroid heading our way, we might have months or years to respond. Some proposals include launching spacecraft to nudge the asteroid slightly off course, or exploding it into smaller pieces that would burn up in the atmosphere. However, these capabilities only work if we invest in planetary protection: better telescopes, more funding for asteroid surveys, and research into deflection technology. The dinosaurs had no warning. We could. The question is whether we will actually prepare for the asteroid that matters: the one we have not yet discovered.