The H-1B is a foreign worker visa in the United States that allows U.S. employers to hire foreign workers in so-called specialty occupations. From Wikipedia
The layoffs target technology, e-commerce, and advertising roles, with new positions being created to align with Walmart's growth strategy.