I have an NRA wife with foreign income, what I need to know is what is the best way to file my taxes in order to get the biggest return, will the tax live help me do that

I need to know is it best to file married filing separately and then can i claim her as a dependent or not? should i file jointly and then declare her income but then are there any exemptions to her income since she spent more than 330 days in a foreign country... etc