Confusion with W-2s for multiple states

Greetings everyone! I have a confusing situation I don't see addressed here yet, so I thought I'd ask for help.

In 2022, I worked remotely full-time from my home in Virginia as an employee for a consulting agency. I am "assigned" to the company's nearest office to me which is in Maryland (but I never went in to that office in 2022).

 

I received three W-2s from my company; they each have tax data as follows:

  1. Virginia W-2 (completely filled out)
    Box 16 shows an amount = 100% of my wages from box 1;
    Box 17 shows zero state tax paid
  2. Maryland W-2 (only boxes 15-17 filled out)
    Box 16 shows an amount ≈ 99% of my wages from box 1;
    Box 17 shows state tax paid of ≈7.2% of the amount in Box 16.
  3. Massachussetts (?!) W-2 (only boxes 15-17 filled out)
    Box 16 shows amount ≈ 0.5% of my wages from box 1;
    Box 17 shows state tax paid of ≈ 2.5% of the amount in Box 16.

What's the best way to handle this? My main concern is it seems like this W-2 is saying I earned ~ 100% of salary in both VA & MD, making me subject to tax on 2x my salary. For its part, TurboTax pulled in this W-2 directly, lists each state's data on a separate line, and says I owe thousands of dollars to Virginia (since that W-2 shows no state tax paid) with no mention of MD or MA.

 

Really confused by this...thanks in advance for any advice! 🙏🏼
—snoqualmie17