How do I save layers in GIMP

I’m trying to save a project I am working on, it has about 3 layers right now, and everytime I go to save it GIMP tells me tga files don’t support layers. So what file type does?

XCF. Always work in the Gimp native .xcf files until you are done, then export to other file types.