01 - Melt butter in a medium saucepan over medium heat. Cook, stirring constantly, until butter foams and develops a golden-brown color with a nutty aroma, approximately 4-6 minutes. Pour immediately into a large mixing bowl and allow to cool for 10 minutes.
02 - Add light brown sugar and granulated sugar to the cooled brown butter, whisking until fully incorporated. Stir in eggs one at a time, followed by vanilla extract, mixing until smooth and creamy.
03 - In a separate medium bowl, whisk together all-purpose flour, baking soda, baking powder, fine sea salt, ground cinnamon, ground nutmeg, and ground ginger until evenly distributed.
04 - Gradually add the dry ingredient mixture to the wet ingredients, stirring gently until just combined. Avoid overmixing to prevent tough cookies.
05 - Fold in rolled oats, finely grated carrots, chopped walnuts or pecans, and raisins until evenly distributed throughout the dough.
06 - Cover the bowl and refrigerate dough for 30 minutes to enhance chewiness and prevent excessive spreading during baking. This step is recommended for optimal texture.
07 - Preheat oven to 350°F. Line two large baking sheets with parchment paper or silicone baking mats.
08 - Scoop chilled dough using a 2-tablespoon cookie scoop or spoon, forming balls. Place dough balls 2 inches apart on prepared baking sheets to allow for spreading.
09 - Bake for 11-13 minutes, rotating pans halfway through, until edges appear set and centers look slightly underbaked. Remove from oven when cookies have a golden edge but still appear soft in the center.
10 - Let cookies rest on baking sheets for 5 minutes before transferring to a wire rack to cool completely. For glaze, beat softened cream cheese and butter until smooth, then mix in powdered sugar and vanilla. Drizzle over cooled cookies.