At least it was only my wheels, I guess?
Rims are expensive and tend to come in pairs. I still have a spare (rear?) rim sitting in our garage from a pair I bought years and years ago. I don't know whether it'd fit on either of my current mtb's (the through axle is definitely different and I'd have to get an adapter, if one exists) and knowing my luck I'd break the other one anyway.