There's a difference between investment and debt. If your cash flow equals your debts, it's an investment.
So, if the US has a net positive year where tax revenue exceeds costs, all the trillions of dollars in debt we are in will suddenly become investments? Fantastic!