Under US bankruptcy laws corporations can file for bankruptcy for the purpose of reorganization of debts (chapter 11) or for liquidation (chapter 7).
Under reorganization the expectation is that you are trying to rehabilitate a failing business that may be profitable again - so the business continues running, and can even borrow money - though your business actions are monitored and ultimately may be approved by the court.
Under liquidation, you auction off everything that isn’t bolted down (and some things that are).
You usually restructure businesses that could emerge from bankruptcy and be profitable again, and liquidate those that can’t. Which one Twitter may be can be debated.