Brown the butter: Melt the butter in a light-colored pan over medium heat, stirring until the milk solids turn amber and smell nutty, 4–6 minutes. Immediately scrape into a large mixing bowl, including the browned bits, and cool until opaque and just slightly warm, 10–15 minutes.
Prep the pans and mix-ins: Line 2 baking sheets with parchment. Roughly break the sandwich cookies and chop the white chocolate; set aside.
Whisk the dry base: In a separate bowl, whisk together the flour, cornstarch, baking soda, and fine sea salt until evenly combined.
Start the batter: To the cooled browned butter, add the granulated sugar, light brown sugar, and dark brown sugar. Whisk vigorously or beat with a hand mixer on medium until slightly thickened and glossy, about 1–2 minutes.
Flavor the egg: In a small bowl, whisk the egg with the vanilla extract, ube extract, and ube halaya until smooth and uniform. Pour this purple mixture into the butter-sugar bowl and mix until creamy and fully combined, about 30–45 seconds.
Add the dry ingredients: Fold the flour mixture into the wet ingredients just until a few dry streaks remain. Gently fold in the broken cookies and white chocolate chunks until evenly distributed; do not overmix.
Portion, then chill: Using a medium scoop (about 2 tablespoons), portion the dough onto a parchment-lined tray. Press a few extra cookie bits or chocolate pieces onto the tops for looks. Freeze the scooped dough for 15–20 minutes (or refrigerate 40–45 minutes) until firm to the touch. While the dough chills, heat the oven to 360°F (182°C).
Bake: Arrange chilled dough balls 2 inches apart on the prepared sheets and bake 11–13 minutes, until the edges are set and the centers are still soft and slightly puffy. For crinkly edges, rap the pan once on the oven rack at the 8-minute mark and rotate the pan.
Finish and cool: Sprinkle a pinch of flaky sea salt over hot cookies. Let them rest on the sheet for 7 minutes, then transfer to a rack to cool completely (they’ll continue to set as they cool).