Estimate your tax obligation and pay the IRS before you lose it or spend it all: https://www.irs.gov/businesses/small-businesses-self-employe...
Then invest the remainder into an index fund or retirement fund. If you don't know where to start, then look here: https://investor.vanguard.com/mutual-funds/target-retirement...