for 2021, 1.2 billion was spent on R&D, 1.7 billion on cost of revenue (guessing a decent amount of this was salaries), and 765 million was due to a class action lawsuit they lost. With all of these, they showed a loss of 200 million. There definitely appears to be some fat that can be trimmed.
This year is on track for a gain, but they sold some ad service for a billion which distorts things.
Is the billion in debt payments actually confirmed? That would most likely require some increase in revenue which is probably why Musk is looking into the verified twitter payment thing.
They only have made a profit 2 out of the last 10 years.