See the NJ Resident Return 1040 Instructions booklet for Line 20a and refer to the Types of Retirement Plans.
A TSP is similar to a 401(k) so you would want to follow those procedures.
Any earnings in the account above the amount contributed will be taxable income.
@agayed