// Create and dispatch mouse events // Note: Modern games might require PointerEvents rather than MouseEvents

If you clarify which “extension” you meant (browser helper, modding, dev project, or file type), I can give you .