Preheat the oven to 350ºF and grease the bottom and sides of a 9-inch cast-iron skillet with 2 tablespoons of coconut oil.
In a large bowl, whisk together the flour, baking soda, and salt. Set aside.
Add the remaining 8 tablespoons of coconut oil and the sugars to the bowl of a stand mixer and beat on medium speed for 2 minutes. Add the egg and vanilla, beating until well combined.
Add the dry ingredients to the wet ingredients, mixing on low. Add the coconut and chocolate chips and mix on low until just combined.
Press the cookie dough into the prepared skillet and bake for 20 to 25 minutes, until the edges are crisp and the cookie is golden and cooked through. Remove from oven. If desired, serve warm topped with vanilla ice cream.