First, heat-treat the flour. Microwave the flour for about 75-90 seconds, stirring 15-sec intervals until it reaches 165°F. Alternatively, preheat the oven to 350°F (177°C), bake the flour for 4 minutes, stir, then continue baking until it reaches the desired temperature.
Next, in a large bowl, using a wooden spoon, stir together the softened butter, brown sugar, and granulated sugar by hand (try not to use a mixer, as whipping air into the dough can lead to cracks in the cheesecake due to the extra air in the cookie dough). Then, add the milk, vanilla extract and almond extract until well combined.
Next, sift in the salt and cooled flour into the cookie dough mixture and stir until almost fully combined.
Lastly, fold in the sprinkles until fully incorporated. Scoop out 8 one-inch cookie dough balls and place them in the refrigerator—these will be used for topping the cheesecake. With the remaining dough, roll into bite-sized pieces and spread them in an even layer on a baking dish and place them in the freezer 5-10 or until you are ready to mix them into the cheesecake. Note, I like to let them come to room temperature for about 15-20 minutes before adding them to the cheesecake filling.