Fix copilot_driver.cjs append callback typing mismatch in TypeScript checks
#27236
+5
−13