Go to Catalog > Products and select the product, open the GST India – Meetanshi tab and set HSN code for the product under the Product HSN Code option.
Also, You can make use of CSV to bulk assign HSN codes to the thousands of your Magento 2 products. Upload your CSV with the product SKU and HSN code data at System > Data Transfer > Import > Select Products as Entity Type > Browse CSV.