We need to design AIs to save us from Bad AIs and also tell AIs to design AIs to protect us from extinction.
This is the basic answer to this question. However, likely creating AIs to save us from Extinction through AIs might be the most important thing to be doing for human beings who want to survive now.
There is likely nothing as necessary as this right now on earth to do.
And 2nd to this is AIs must tell us how to survive Global Climate changes.
Between Flooding and droughts and snows and rising oceans without some help food will become so expensive that only the rich will survive from now on.
So, solving the Global Climate change problem will also help prevent human extinction.