Any ship that is at the same location as another ship can transfer fuel, or missiles instantly using the individual ship details screen, but if you set a design as a tanker then other ships will be able to refuel from it using the conditional orders ie "refuel from nearest tanker when fuel is at 50%" tankers also get the "dump 90% fuel at location " order.