After you file

I worked through staffing agency and filed my 2021 taxes as my 2022 taxes then when I tried to fix it I actually amended the return and basically just put the 2022 w2s as the amendment and realized I messed up and don't know how to undo it