The host dark matter haloes of the first quasars