I need to roast some hazelnuts to use later for other preparations.
How do you do it?
In a cooking pan or in the oven, and for how much time?
Both the pan and the oven method work, use whichever you find more comfortable. If you don't yet know which is more comfortable, try both and see.
You can't predict the time, just roast until they smell good. If they are peeled, the color will turn slightly more golden. You will also recognize roasting too long (burning) by smell.
The one important thing that's not obvious to beginners is to have them in a single layer, do not fill the pan.