Fly over a piece of junk to pick it up with your magnet. Click to drop the junk. Click and hold to absorb the junk into your ship. Upgrade your base by dropping junk directly onto it.