So this is like using wget --mirror except that it works on pages that require javascript, right?

Yeah, it is. For example, openai.com is rendered with Next.js, so I will try to mirror it tomorrow.