Took a delayed approach... I started an open source project, that got popular, while I was on H1B (while still working)... then I monetized it / formed a formal company once I got a green card.
Throwaway because I'm a bit unsure. I simply registered a company using stripe atlas. Technically I don't work for the company, I just own it. It doesn't have any revenue or employees yet, but the day it starts getting serious, I'll talk to a lawyer to figure out how to transition to working under this company with some GC cofounder as the ceo probably.