I’ve always found the best option is to connect the inverter to the battery using good quality , protected, and adequate gauge wire. Use a fusable link between the battery and the positive cable so if something shorts, the fuse will blow. I mounted my inverter under the rear seat then used a heavy extension cord to go from there. You do have to stay conscious of your battery level so you don’t drain it to the point you can’t start the truck to recharge.