You should cook the shrimp just until they turn pink and opaque. Be careful not to overcook them, as this can result in a tough and rubbery texture. Cool them immediately if you're not eating them right away, by placing them on a plate or bowl and away from heat.