Apologies, you are correct. I haven't considered emigrating to the US for years and forgot the specific details. Most of my recent knowledge just comes from my friends who live there.
Iirc you can indefinitely keep getting renewals on your h1b while waiting on the green card queue - and this queue is many decades long for people from certain countries like India and China.