A cookie exactly as Mojo::Cookie::Response->new(name => ..., value => ..., domain => ..., path => ...) shapes it in the legacy Perl source this was converted from —
lanrurugi-plugin-converter renders that legacy constructor call straight to an object literal
of this shape (see render.rs::try_match_legacy_http_constructor), so cookie_jar below takes
it as plain data rather than a real class instance.
Usage
import { type LegacyCookie } from "plugins/legacy-globals.d.ts";