Retirement tax questions

To freshen up this question for 2024, and because I retired from the Fed Govt. last year at age 56 1/2, Im waiting for my TSP 1099R so I can see how it is coded, and I can see if Turbo Tax will get me out of the 10% penalty for money I took out of TSP for living expenses in 2024.  But your posts keep confusing "box 2" with "code 2" and "box 7" with "code 7."  In the OPM 1099R (for the pension), which I got last week and printed, there is a box 7 and a code 7 (nondisability) inside that box.  I will have to see how the TSP 1099R is structured.  Im hoping box 7 on the TSP 1099R has a code 2 for me (no 10% penalty).  When I try code 1 in box 7, my tax due goes up several thousand dollars.  Want to clarify?