Extract a reusable utility library
Pull scattered helper functions into a shared utility module with a clean public API, consistent edge-case handling, and JSDoc for every function.
Preview
Copy prompt
Identify helper and utility functions that are currently duplicated or scattered across multiple files: [Paste code from several files]. Consolidate them into a single shared utility module with a clean, well-documented public API. Handle edge cases consistently across all moved functions, write JSDoc or docstring comments for each one, and show the updated import statements in all files that previously contained the duplicated code.
More
Refactoring
Prompts
