@Daniel ******
which means she doesn't have ANY visa at all 😕 I am sure if you read the stamp in her passport it would say "extension of stay permitted until" and have a date of July 10th 2025 on it
IN THEORY
You're supposed to go move the extension stamps to a new passport before you exit the country on it
BUT
As you say you're permanently leaving thailand in June, just show both passports when she stamps out. They'll stamp her out on the new one and note she entered originally on the old one.
You'll be fine without moving the extension stamp to the new passport