To connect a wireless printer to a laptop, put the printer on your WiFi network, then add it on your laptop through the printer settings. On Windows use Settings → Bluetooth & devices → Printers & scanners → Add device; on Mac use System Settings → Printers & Scanners. Both detect networked printers automatically.
Connection Methods
WiFi Setup ⚡ Wireless
Connect the printer to your WiFi via its panel or setup app.