01 - Place butter in a medium saucepan over medium heat. Cook, stirring constantly, until butter foams and develops a golden-brown color with a nutty aroma, about 4–6 minutes. Immediately transfer to a large mixing bowl and cool for 10 minutes.
02 - Add brown sugar and granulated sugar to the cooled brown butter. Whisk thoroughly until fully combined. Stir in eggs one at a time, followed by vanilla extract, mixing until smooth and creamy.
03 - In a separate medium bowl, whisk together flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger until evenly distributed.
04 - Add dry ingredients to the wet mixture. Stir with a spatula or wooden spoon until just combined—avoid overmixing to prevent tough cookies.
05 - Gently fold in oats, grated carrots, walnuts or pecans, and raisins if using, until evenly distributed throughout the dough.
06 - Cover bowl with plastic wrap and refrigerate for 30 minutes. This step is recommended for enhanced chewiness and flavor development.
07 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
08 - Scoop dough into 2-tablespoon portions, rolling into balls. Arrange on prepared baking sheets 2 inches apart to allow for spreading.
09 - Bake for 11–13 minutes, rotating pans halfway through, until edges are set but centers appear slightly underbaked. This ensures a chewy texture.
10 - Let cookies cool on baking sheets for 5 minutes before transferring to a wire rack to cool completely.
11 - While cookies cool, beat softened cream cheese and butter until smooth. Add powdered sugar and vanilla, beating until creamy and well combined.
12 - Drizzle or spread glaze over completely cooled cookies. Allow glaze to set before serving.