Tannaka Duality for Comonoids in Cosmoi