If you go to the IRS.gov website and navigate to where the tax documents are, there is a question about what kind of document you want.
One of the options is "Immigration", and if you select that I believe it will give you the Tax Return Transcript for the years you select.
This is different than other documents the IRS provides such as the the Tax Account Transcript, which while might be OK for some stages of immigration (the embassy for the K-1 visa might allow it), this will not have all the information that they want to see. I didn't realize that originally and so we got an RFIE for submitting the wrong tax documents for the I-485 😅.
So in summary, download the Tax Return Transcripts for the years needed for your I-751 (at least 3 years of whatever has been filed if I remember correctly). While you could submit the actual return packet that you filed, the IRS documents are much more concise and easier to just print out and submit.