Code G is "Elective deferrals and employer contributions (including nonelective deferrals) to any governmental or nongovernmental section 457(b) deferred compensation plan."
On the W-2 input screen, use the pull down (inverted diamond) on the left and select option G, and on the right enter the amount with code G.
TurboTax uses this information as needed in the tax return.