You may qualify for the foreign earned income, foreign housing exclusions and the foreign housing deduction if you meet certain requirements. Learn more.
when tax time comes around, you fill out an IRS form called the FEIE, the Foreign Earned Income Exclusion.
Check the "physical presence test" box, fill out your total income for that year, then write down the dates that you were not in the United States and where you were.
Probably worth pointing out that the fact that the US claims any tax on income earned by its citizens overseas is very weird and not normal internationally