They'll get indicted after he's left office. He can't pardon retroactively.
I don't think it's been tested yet, technically?
https://www.criminallawlibraryblog.com/preemptive-pardons-co...