Given the angle of the wheel and probable impact force that caused the air bags to deploy that one has a bent frame. If that is "barely has any damage" your frame skills are better than mine.
Knee and wheel airbags are deployed. They're not that expensive new. But from suspension damage Tesla requires the replacement of the complete subframe, steering rack and every suspension component on that side.
When I rebuild cars, I normally don't replace the subframe unless if it actually bent. Same with the steering rack. It's a 50/50 chance of the steering rack being bad. They usually either make a grinding noise or become really stiff so have to replace them.
This specific car is most likely totaled not because of the frame rail on itself but because of the rocker panel damage from the wheel. There a couple pieces that stick out a little further to shield the HV cables and airline suspension lines. Tesla would probably require to replace the whole rocker panel which is why I'm assuming it's totaled. I would just reweld that piece and it would be fine.