throttleSyncCreates a throttled version of a synchronous function that ensures it's executed at most once per specified interval.
fn: The synchronous function to throttleinterval: Throttle interval in milliseconds (default: 500)Returns a throttled function with additional control methods:
cancel(): Cancel pending executionflush(): Execute immediatelypending(): Check if execution is pendingthis contextthrottle which returns Promise)debounceSync but with different timing behavior