How do you apply foreign taxes paid on foreign income earned (salary while working abroad) to avoid double taxation?

Currently TurboTax output gives me zero taxable income, but still shows taxes due on the full foreign income amount.