Go to Stock › New movement, choose Opening stock, then add each product with its quantity and unit cost.

You can also fill an StockInitial column when importing products from Excel.