1. Preheat oven to 350 degrees. On a rimmed baking sheet, roast nuts until golden, 12-15 minutes. Line another baking sheet with parchment paper; set aside.
2. In a large skillet, heat butter, sugar, and rosemary over medium-high. Add nuts; stir until butter mixture is golden brown, 3-5 minutes.
3. Spread nuts on prepared baking sheet; season with salt. Cool to room temperature, tossing occasionally, about 15 minutes.