Toasting walnuts before using them in baking cookies is optional but recommended for an enhanced flavor. Simply spread the walnuts on a baking sheet and toast them in a preheated oven at 350 degrees for about 8-10 minutes or until they turn lightly golden and fragrant. Allow them to cool before adding them to your cookie dough for the best results.