There can be an automated way of translating WebIDL to wit.
I've actually tried to do that the past and got pretty far. https://github.com/wasi-gfx/webidl2wit
And here's the generated wit https://github.com/mendyberger/brow
I've actually tried to do that the past and got pretty far. https://github.com/wasi-gfx/webidl2wit
And here's the generated wit https://github.com/mendyberger/brow