The traditional approach to this hypothetical scenario is to deflect the orbit of the incoming threat, but a scientist recently proposed an innovative approach.
'Oumuamua (pronounced oh-MOO-uh-MOO-uh) lacks the tail of gas and dust characteristic of many comets.
The comet was designated C/2022E3 (ZTF) and it was discovered in early March 2022 by the Zwicky Transient Facility. It isn't going to hit us, but it will be visible with the naked eye.