A formalization of (homotopy) limits in Homotopy Type Theory