After you file

Simply put, Form 1040X give you credit for all amounts already paid, including for a CP2000 notice.