When entering the U.S. you are required to fill out a customs declaration. It requires you to select if you are a resident or visitor. Is an H-1B visa holder that is intending to stay in the U.S. and work for several years classified as a resident or a visitor?
There is additionally a question about country of residence on the customs declaration form. Should this be the U.S. or the country that you are coming from (although you are no longer living there for any practical purposes or matters)?
The confusion comes from the fact that H-1B visa holders apparently are not permanent residents at least. But it is not clear if there are other types of "residents", such as "temporary residents" perhaps? The length of the stay, several years, is associated with someone who is a resident.