Trap comes with 2 little blue plugs which blank off these connections and I always leave them in the sink unit so that if the appliance has to be removed, sink can continue to be used.
Otherwise, wine bottle cork or remove nozzle and stuff with tissue, bit of rag etc.