Important note about this (though I don’t know how much you earn): you can only exempt up to 120000 dollar equivalent per year, and you must still file your taxes every year with the American government even if you don’t live there. Non-US bank accounts and investments also must be declared, even if you no longer live there.
I’m not American myself, but a colleague of mine is and she has mentioned having trouble with American agencies because some of these points (specifically the bank account point if I remember correctly).
Edit: corrections to my info in comment below.
Thank you for the corrections! I had no idea it was so simple. I think my colleague had problems because she wasn’t aware of the FBAR for a few years.