01 - Preheat the oven to 350°F. Line a large baking sheet with parchment paper.
02 - Place all nuts in a large mixing bowl.
03 - Drizzle olive oil over the nuts and toss to coat evenly. Sprinkle sea salt, smoked paprika, garlic powder, and cayenne pepper if using; mix well.
04 - Spread the seasoned nuts in a single layer on the prepared baking sheet.
05 - Roast for 12 to 15 minutes, stirring halfway through, until nuts turn golden and release a fragrant aroma.
06 - Remove from oven and, while still warm, sprinkle with chopped rosemary if desired. Allow to cool slightly before serving.