Undoing this damage will require the US to take a long hard look at itself and I don't think there is the impetus to do that.
Why would, for example Europe, want to get back in bed with the US as long as the GOP who caused all of the problems still exist? We could have 8 years of stability and then some other insane republican gets in and it's back to square one again. The better option is to just label the US's politically unstable, and not have anything to do with them anymore.
If you want the rest of the world to trust you again you're going to have to put these idiots on trial, give them serious prison sentences, and then change the stupid constitution so that convicted criminals are ineligible for office and the president isn't God emperor, they have some limits on power. Also having the president elect court justices is obviously stupid as well, fix that.
Of course none of this will happen.
The thing is they're lying to themselves. If they actually thought that you could replace all humans with AI they'd have already done it, as it currently is it's only a few companies that are transitioning a few jobs over to AI. eeery company that's tried to replace their entire workforce has dramatically failed.
If my bosses want to replace me with AI I will gladly take the severance, and then the job are back in 6 months with twice the salary.