Assume someone is a citizen of the United States, and a resident of another country (if a specific example is necessary, Turkey). They live in the foreign country and work remotely for a company in the US. Their income is taxed the normal way by the US government (the Foreign Earned Income Tax Exclusion may apply).
Would the foreign government get the short end of the deal in this situation, because the income has already been taxed by the US? Or would it be necessary to file their taxes in some more complicated way so that both governments get a piece of the pie?