Cosmological correlators, In–In formalism and double copy